import request from '@/utils/processRequest';

// 获取表头
export function getableHeader(data) {
  return request({
    url: '/produce/header',
    method: 'post',
    data
  });
}

// 获取数据
export function getTableData(data) {
  return request({
    url: '/produce/data',
    method: 'post',
    data
  });
}

export function getApplyTaskList(data) {
  return request({
    url: '/formTask/my/applyTaskList',
    method: 'post',
    data
  });
}

export function getTodoTaskList(data) {
  return request({
    url: '/formTask/my/todoTaskList',
    method: 'post',
    data
  });
}

export function getApproveList(data) {
  return request({
    url: '/formTask/my/approveList',
    method: 'post',
    data
  });
}

export function getDraft(data) {
  return request({
    url: '/adminBasic/getDraft',
    method: 'post',
    data
  });
}

// 获取我的待办等的数量
export function getCount(data) {
  return request({
    url: '/adminBasic/getCount',
    method: 'post',
    data
  });
}

// 获取sid
export function getSidByDefKey(data) {
  return request({
    url: '/menu/getSidByDefKey',
    method: 'post',
    data
  });
}
